<?php
/**
 * Elgg 2 sidebar layout
*
* @package Elgg
* @subpackage Core
*
* @uses $vars['content'] The content string for the main column
* @uses $vars['sidebar'] Optional content that is displayed in the sidebar
* @uses $vars['sidebar_alt'] Optional content that is displayed in the alternate sidebar
* @uses $vars['class']   Additional class to apply to layout
*/

$class = 'custom-index elgg-main elgg-grid clearfix';
if (isset($vars['class'])) {
	$class = "$class {$vars['class']}";
}

$class1 = 'elgg-module  elgg-module-featured';
?>

<div class="<?php echo $class; ?>">
	<!--  <div class="elgg-sidebar">
		<?php //echo elgg_view('page/elements/sidebar', $vars); ?>
	</div> -->
	<div class="elgg-col elgg-col-1of2">
		<div class="elgg-inner pvm prl">
			<?php echo elgg_view("index/lefthandside"); ?>
			
				<?php echo elgg_view('page/elements/owner_block', $vars);

				//echo elgg_view_menu('page', array('sort_by' => 'priority')); ?>
			
			
				<?php echo elgg_view('page/elements/sidebar_alt', $vars); ?>
			
		</div>
	</div>	
	<div class="elgg-col elgg-col-1of2">
		<div class="elgg-inner pvm">
		<?php  echo elgg_view("index/righthandside"); ?>
		
		<?php 
			// allow page handlers to override the default header
		?>
		<div class="elgg-body elgg-main">
			<?php
				// @todo deprecated so remove in Elgg 2.0
				if (isset($vars['area1'])) {
					echo $vars['area1'];
				}
				if (isset($vars['content'])) {
					echo $vars['content'];
				}
			?>
		</div>
		</div>
		
	
		
	</div>
</div>